package cn.itcast.day04.baozhuangclass;
/*
   基本数据类型和字符串进行转换

    基本-->字符串:拼接""
                String类静态方法valueOf()

    字符串-->基本数据类型
            parsexxx()
 */
public class Demo03_IntegerToString {
    public static void main(String[] args) {
        int i = 10;
        //1020
        System.out.println(i+""+20);

        String s = String.valueOf(i);
        //1012
        System.out.println(s+12);
        System.out.println("---------------------");

        int i1 = Integer.parseInt("1");
        //11
        System.out.println(i1+10);
    }
}
